package traitdemo

import scala.collection.mutable.ArrayBuffer

/**
  * 使用with混入特质
  */
class BasicIntQueue extends IntQueue {
  private val buf = new ArrayBuffer[Int]()

  def get: Int = buf(0)

  def put(item: Int): Unit = {
    buf += item
  }
}
